package com.example.springboottest.example.enumtest;

import java.util.Collections;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;

public class EnumTest {
    public static void main(String[] args) {
//        test(EnumInt.THUSDAY, EnumString.RUN);

//        double sum = BasicOperation.DIVIDE.apply(1.00, 2.00);
//        System.out.println(sum);

//        double sumLambda = OperationV2.TIMES.apply(4.0, 5.1);
//        System.out.println(sumLambda);

//        double result = OperationV3.PLUS.apply(4.0, 5.1);
//        System.out.println(result);

//        List<String> list = test2(null);
////        System.out.println(list == Collections.emptyList());
//        list.add("1");
//        System.out.println(list.size());

//        ThreadLocalRandom random = new ThreadLocalRandom();
        for (int i = 0; i < 10; i++)
            System.out.println(ThreadLocalRandom.current().nextInt(10));
    }

    public static void test(EnumInt enumInt, EnumString enumString) {
        int m = 5 + enumInt.getValue();
        System.out.println(m);
        System.out.println(enumString.toString());
    }

    public static List<String> test2(String msg) {
        return Collections.emptyList();
    }
}
